/**
 *  @file SDLTextRepresentation.cpp
 *
 *  @date 25-nov-2009
 *  @author Ives van der Flaas
 */

#include <string>
#include <iostream>
#include "SDLTextRepresentation.h"
#include "SDLResourceManager.h"
#include "SDLTypeSetter.h"

namespace si_sdl
{

SDLTextRepresentation::SDLTextRepresentation(std::string text,
		std::string fontlocation,
		int ptSize,
		Color fontColor,
		Color bgColor,
		TextAlignment align)
{
	set(text, fontlocation, ptSize, fontColor, bgColor, align);
}

SDLTextRepresentation::~SDLTextRepresentation()
{

}

void SDLTextRepresentation::set(std::string text,
			std::string fontlocation,
			int ptSize,
			Color fontColor,
			Color bgColor,
			TextAlignment align)
{
	fMe = SDLTypeSetter::get()->typesetText(text, fontlocation,ptSize,fontColor,bgColor,align);
	fResized = fMe;
}

}
